package com.bw.dao;

import com.bw.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/***************************
 FileAction:

 CreateTime:2022-07-27 14:33
 Author:Aaking-aline
 ****************************/
public interface UserDao {

	@Select("select * from user where username = #{username} and password = #{password}")
	List<User> selectUser(User user);


	@Insert("insert into user(username,password) values(#{username},#{password})")
	void insertUser(User user);

}
